package com.cskaoyan.service;

import com.cskaoyan.bean.Address;
import com.cskaoyan.bean.address.WXAddress;
import com.cskaoyan.bean.address.WXAddressDetail;
import com.cskaoyan.bean.address.WXAddressSave;

import java.util.List;

/**
 * @author: heliming
 * @date: 2021/6/7
 * @description:
 */
public interface WXAddressService {

    List<WXAddress> selectAddressList(Integer userId);

    WXAddressDetail selectAddressDetail(Integer id);


    void insertAddressSave(WXAddressSave wxAddressSave,Integer userId);


    void updateAddress(Integer wxId);

    //修改
    Integer updateAddressDefault(WXAddressSave wxAddressSave);

    //将所有的地址设置为非默认
    void updateAddressDefaultFalse(WXAddressSave wxAddressSave);

    Address getAddressOrDefault(Integer addressId, Integer userId);
}
